package cn.db.iot.service;

import cn.db.iot.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 系统用户服务接口
 */
public interface SysUserService extends IService<SysUser> {
    
    /**
     * 根据用户名查询用户
     */
    SysUser getByUsername(String username);
    
    /**
     * 导出用户数据到Excel
     */
    void exportToExcel(java.util.List<SysUser> users, HttpServletResponse response) throws IOException;
}
